/**
 * AgentCommissionBill
 * Copyright © 2015 - 2017 
 * All rights reserved.
 * -----------------------------------
 * 2018-04-23  Created
 */
package com.lzy.business.response;



import java.io.Serializable;
import java.math.BigDecimal;

public class AgentCommissionBillResponse implements Serializable {
    private static final long serialVersionUID = 3998778962870086048L;
    /**
     * ID
     */
    private Long id;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 2.1member_user的会员id
     */
    private Long memberId;

    /**
     * 2.1member_user的会员名
     */
    private String memberName;

    /**
     * 用户名
     */
    private String name;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 资源id（协议id或产品id）
     */
    private Long sourceId;

    /**
     * 1-协议首次分佣 2-产品销售分佣
     */
    private Integer type;

    /**
     * 分佣金额
     */
    private BigDecimal amount;

    private String createTime;

    private String updateTime;

    private Boolean deleted;

    /**
     * 所属协议
     */
    private String sourceName;

    /**
     * 体系名称
     */
    private String systemName;

    /**
     * 协议id
     */
    private Long protocolId;

    /**
     * 体系id
     */
    private Long systemId;

    /**
     * 开始时间
     */
    private String startTime;

    /**
     * 结束时间
     */
    private String endTime;

    /**
     * 分拥类型
     */
    private String typeName;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public Long getProtocolId() {
        return protocolId;
    }

    public void setProtocolId(Long protocolId) {
        this.protocolId = protocolId;
    }

    public Long getSystemId() {
        return systemId;
    }

    public void setSystemId(Long systemId) {
        this.systemId = systemId;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        if(createTime.substring(createTime.length()-2,createTime.length()).equals(".0")){
            this.createTime = createTime == null ? null : createTime.trim().substring(0,createTime.length()-2);
        }else{
            this.createTime = createTime == null ? null : createTime.trim();
        }
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }
}